﻿<!--
(c) Copyright Cory Plotts.
This source is subject to the Microsoft Public License (Ms-PL).
Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
All other rights reserved.
-->
<UserControl
	x:Class="Snoop.ZoomerControl"
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	mc:Ignorable="d"
	Focusable="True"
	xmlns:xv="clr-namespace:Snoop"
	d:DesignWidth="300"
	d:DesignHeight="300"
>
	<Grid
		x:Name="DocumentRoot"
		Focusable="True"
		ClipToBounds="True"
		Mouse.MouseDown="Content_MouseDown"
		Mouse.MouseMove="Content_MouseMove"
		Mouse.MouseUp="Content_MouseUp"
	>
		<Grid.Background>
			<Binding ElementName="ColorSlider" Path="Value">
				<Binding.Converter>
					<xv:DoubleToWhitenessConverter/>
				</Binding.Converter>
			</Binding>
		</Grid.Background>

		<Viewbox x:Name="Viewbox"/>

		<Slider
			x:Name="ColorSlider"
			Width="100"
			HorizontalAlignment="Right"
			VerticalAlignment="Top"
			Margin="0,2,2,0"
			Minimum="0"
			Maximum="1"
			Value=".75"
			Opacity=".5"
			Cursor="Arrow"
			Focusable="False"
		>
			<Slider.ToolTip>
				<TextBlock Style="{x:Null}" Text="Use this slider to adjust the Background from white to black."/>
			</Slider.ToolTip>
		</Slider>
	</Grid>
</UserControl>
